import request from '@/utils/request'

// 查询招聘岗位列表
export function listRecruitPost(query) {
  return request({
    url: '/recruit/recruitPost/list',
    method: 'get',
    params: query
  })
}

// 查询招聘岗位详细
export function getRecruitPost(recruitPostId) {
  return request({
    url: '/recruit/recruitPost/' + recruitPostId,
    method: 'get'
  })
}

// 新增招聘岗位
export function addRecruitPost(data) {
  return request({
    url: '/recruit/recruitPost',
    method: 'post',
    data: data
  })
}

// 修改招聘岗位
export function updateRecruitPost(data) {
  return request({
    url: '/recruit/recruitPost',
    method: 'put',
    data: data
  })
}

// 删除招聘岗位
export function delRecruitPost(recruitPostId) {
  return request({
    url: '/recruit/recruitPost/' + recruitPostId,
    method: 'delete'
  })
}
